<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<html>

	<head>
		<title>Artist :: List</title>
		<meta name="object" content="artist">
	</head>

	<body>

		<div id="apphead">
			<h2>Artist :: <em>List</em></h2>
		</div>

		<div id="projecthome" class="app">
			
			<table border="1" cellspacing="2" cellpadding="3" width="100%">
				<tr>
					<th>Name</th>
					<th>Created</th>
					<th>Actions</th>
				</tr>
				<c:forEach items="${artists}" var="artist" varStatus="status">
					<tr class="${status.count % 2 == 0 ? 'b' : 'a'}">
						<td><a href="<c:url value="artistDisplay.action?uuid=${artist.uuid}"/>">${artist.name}</a></td>
						<td>${artist.created}</td>
						<td>
							<a href="<c:url value="/artistEdit.action?uuid=${artist.uuid}"/>">edit</a>
							<a href="<c:url value="/artistExport.action?uuid=${artist.uuid}"/>">export</a>
							<a href="<c:url value="/rest/artist/${artist.uuid}"/>">atom</a>
						</td>
					</tr>
				</c:forEach>

			</table>

		</div>

	</body>

</html>